﻿using System;
using System.Collections.Generic;

namespace WFRPDice
{
    public class Die
    {
        public int Sides;
        public DiceColor Color { get; set; }
        public DiceName Name { get; set; }
        public List<DiceSymbol> Symbols { get; set; }

        public DiceSymbol Roll(Die die, Random rnd)
        {
            var mySeed = new Random();
            rnd = new Random(mySeed.Next());
            var numRolled = rnd.Next(0, die.Sides - 1);
            var ds = die.Symbols[numRolled];
            return ds;
        }
    }
}